// home的控制器
angular.module('invitation.controller', ['invitation.service'])
  .controller("InvitationCtrl", function ($scope,$ionicSlideBoxDelegate) {

    $scope.tabNames=['输入推荐邮箱','微信公众号'];
    $scope.slectIndex=0;
    $scope.activeSlide=function(index){//点击时候触发
      $scope.slectIndex=index;
      $ionicSlideBoxDelegate.slide(index);
    };
    $scope.slideChanged=function(index){//滑动时候触发
      $scope.slectIndex=index;
    };
    $scope.pages=["areas/invitation/mail.html","areas/invitation/wechat.html"];
  })


